<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/views/include/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<%@ include file="/views/include/nocachehead.jsp"%>
<title>${attraction.name}</title>
<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/css/spot.css" />
</head>

<body>
	<%@ include file="/views/include/statusbar.jsp"%>
	<br>
	<br>

	<div>
		<c:forEach items="${refrenceList}" var="ref">
			<c:if test="${ref.refType eq 'ALBUM' }">
				<div>
					<div>
						<a title=" ${ref.refTitle }" href="${pageContext.request.contextPath}/attraction/ref/${ref.id}.html">
							<img alt="${ref.refTitle}" src="${pageContext.request.contextPath}/image/${ref.refPortrait}" />
						</a>
					</div>
					<div>
						<c:out value="${ref.refTitle }" />
					</div>
				</div>
			</c:if>
			<c:if test="${ref.refType eq 'TRAVELNOTE' }">
				<div>
					<div>
						<a title="${ref.refTitle }" href="${pageContext.request.contextPath}/attraction/ref/${ref.id}.html">
							<c:out value="${ref.refTitle }" />
						</a>
					</div>
					<div>
						<p><skyline:summary length="60" value="${ref.refDigest }" /></p>
						<p>
							<a title="${ref.refTitle }" href="${pageContext.request.contextPath}/attraction/ref/${ref.id}.html">
							查看游记
							</a>
						</p>
					</div>
				</div>
			</c:if>
		</c:forEach>
	</div>
	<div>
		<skyline:page url="${pageContext.request.contextPath}/attraction/ref/list/${attraction.id }.html?type=${type }"
					page="${requestScope.page}" maxSize="6" />
	</div>
</body>
</html>